package com.atguigu.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName SkuEsModel
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/6/16
 * @Version 1.0
 */
@Data
public class SkuEsModel {
    private Long skuId;
    private Long spuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    //销售数量
    private Long saleCount;
    //是否有库存
    private Boolean hasStock;
    //热度评分
    private Long hotScore;
    private Long brandId;
    private Long catalogId;
    private String brandName;
    private String brandImg;
    private String catalogName;
    //商品规格
    private List<Attrs> attrs;

    //为了可以被其他类访问和序列化，这里使用public进行修饰
    @Data
    public static class Attrs{
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
